package com.jiashihui.server1.annotation.test;

/**
 * @author jiashihui
 * @describe: TODO
 * @date 2019/01/16
 */
public class PasswordUtils {
    @UseCase(id="47",description="Passwords must contain at least one numeric")
    public boolean validatePassword(String password) {
        return (password.matches("\\w*\\d\\w*"));
    }

    @UseCase(id ="48")
    public String encryptPassword(String password) {
        return new StringBuilder(password).reverse().toString();
    }
}
